Increasing memory settings on the build servers in hopes of finding whether that reduces the frequency of running out of memory Bug: 170117185 Test: treehugger runs busytown/androidx.sh Change-Id: Iac39e72709f972fcb38b55b07791ccfff1545efd 
diff --git a/gradlew b/gradlew index efd6003..f567cdb 100755 --- a/gradlew +++ b/gradlew 
@@ -29,7 +29,8 @@    #Set the initial heap size to match the max heap size,  #by replacing a string like "-Xmx1g" with one like "-Xms1g -Xmx1g" - ORG_GRADLE_JVMARGS="$(echo $ORG_GRADLE_JVMARGS | sed 's/-Xmx\([^ ]*\)/-Xms\1 -Xmx\1/')" + MAX_MEM=16g + ORG_GRADLE_JVMARGS="$(echo $ORG_GRADLE_JVMARGS | sed "s/-Xmx\([^ ]*\)/-Xms$MAX_MEM -Xmx$MAX_MEM/")"    # tell Gradle where to put a heap dump on failure  ORG_GRADLE_JVMARGS="$(echo $ORG_GRADLE_JVMARGS | sed "s|$| -XX:HeapDumpPath=$DIST_DIR|")"